package studay.facad;

/**
 * @program: 设计模式
 * @description: 外观类
 * @author: Tom
 * @create: 2022-01-07 16:18
 **/
public class MessageFacade implements ImessageManager {
    private  ImessageManager wechatMessageManager = new WechatMessageManager();
    private  ImessageManager smsMessageManager = new SmsMessageManager();
    private  ImessageManager mainMessageManager = new MainMessageManager();

    @Override
    public void pushMessage() {
        wechatMessageManager.pushMessage();
        smsMessageManager.pushMessage();
        mainMessageManager.pushMessage();
    }
}
